package cn.xiuxius.embedded.toolwindow.flashtool;

import cn.xiuxius.embedded.toolwindow.model.CommandOption;
import lombok.*;
import lombok.experimental.Accessors;

@Accessors(chain = true)
@Builder
@Getter
@Setter
public class FlashOptionItem {

    public static final FlashOptionItem CUSTOM_ITEM = new FlashOptionItem(OptionUIType.CUSTOM_BUTTON, "custom", "自定义", null, false);

    private OptionUIType type;
    private String id;
    private String displayName;
    private CommandOption option;
    private boolean refreshButton;

    public FlashOptionItem(OptionUIType type, String id, String displayName, CommandOption option, boolean refreshButton) {
        this.type = type;
        this.id = id;
        this.displayName = displayName;
        this.option = option;
        this.refreshButton = refreshButton;
    }
}


